﻿//TradersWindow.xaml.cs
//Copyright (c) 2013 StockSharp LLC, all rights reserved.
//This code module is part of StockSharp library.
//This code is licensed under the GNU GENERAL PUBLIC LICENSE Version 3.
//See the file License.txt for the license details.
//More info on: http://stocksharp.com

namespace StockSharp.Xaml
{
	using System;
	using System.Collections.Generic;

	using StockSharp.Algo;
	using StockSharp.BusinessEntities;

	/// <summary>
	/// Окно создания новых шлюзов <see cref="ITrader"/>.
	/// </summary>
	public partial class TradersWindow
	{
		/// <summary>
		/// Создать <see cref="TradersWindow"/>.
		/// </summary>
		public TradersWindow()
		{
			InitializeComponent();
		}

		/// <summary>
		/// Шлюз-агрегатор.
		/// </summary>
		public BasketTrader Trader
		{
			get { return TradersPanel.Trader; }
			set { TradersPanel.Trader = value; }
		}

		/// <summary>
		/// Коллекция шлюзов.
		/// </summary>
		public BasketTrader.IInnerTraderList Traders
		{
			get { return TradersPanel.Traders; }
			set { TradersPanel.Traders = value; }
		}

		/// <summary>
		/// Визуальное описание доступных шлюзов.
		/// </summary>
		public IList<Tuple<string, Type, Type>> TraderInfo
		{
			get { return TradersPanel.TraderInfo; }
		}
	}
}